package com.linsen.core.lock.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * Redisson配置类
 * @author zhaoyong
 * @date 2023/3/21
 */
@Data
@RefreshScope
@ConfigurationProperties("linsen.redission")
public class LinsenRedissionProperties {
    /**
     * redis主机地址，ip：port，有多个用半角逗号分隔
     */
    private String address;
    /**
     * 连接类型，支持standalone-单机节点，sentinel-哨兵，cluster-集群，masterslave-主从
     */
    private String type;
    /**
     * redis连接密码
     */
    private String password;
    /**
     * 选取数据库
     */
    private int database;
}
